Receive demodulator for capacitive sensing

ABSTRACT

A charge storage circuit stores charge from a current induced across a capacitive sensing device. The current across the capacitive sensing device is supplied to the charge storage circuit by a current conveying device to generate an output voltage signal. The presence of a conductive object proximate to the capacitive sensing device is detected based on the output voltage signal.

RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 61/117,031 filed on Nov. 21, 2008.

TECHNICAL FIELD

This disclosure relates generally to the field of user interface devices and, in particular, to touch sensor devices.

BACKGROUND

One type of touch sensor device operates by way of capacitance sensing utilizing capacitance sensors. The capacitance detected by a capacitance sensor changes as a function of the proximity of a conductive object to the sensor. The conductive object can be, for example, a stylus or a user's finger. In a touch sensor device, a change in capacitance detected by each sensor in the X and Y dimensions of the sensor array due to the proximity or movement of a conductive object can be measured by a variety of methods. Regardless of the method, usually an electrical signal representative of the capacitance detected by each capacitive sensor is processed by a processing device, which in turn produces electrical or optical signals representative of the position of the conductive object in relation to the touch sensor pad or touch sensor screen in the X and Y dimensions. A touch sensor strip, slider, or button operates on the same capacitance-sensing principle.

One type of touch sensor device operates on a principle known as self capacitance. Self capacitance refers to the capacitance between one electrode of a touch sensor device and ground. A number of self capacitance sensor devices may be arranged in a matrix to form a touch-sensor pad. As the size of the matrix increases, the number of self capacitance sensors increases along with the number of measurements for determining the presence of a conductive object. The increased number of measurements takes a longer amount of time to perform. The speed of the measurements can be increased by sampling the sensors in parallel, however, not all self capacitance sensors can support parallel sensing.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings.

FIG. 1 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor according to an embodiment.

FIG. 2 is a block diagram illustrating a demodulation circuit for storing charge from a mutual capacitance sensor using a quasi-differential channel according to an embodiment.

FIG. 3 is a waveform diagram illustrating the waveforms in a demodulation circuit using a quasi-differential channel according to an embodiment.

FIG. 4 is a flowchart illustrating a method of storing charge from a mutual capacitance sensor using a quasi-differential channel according to an embodiment.

FIG. 5 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor according to an embodiment.

FIG. 6 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor using a single capacitor to ground according to an embodiment.

FIG. 7 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor in a differential mode according to an embodiment.

FIG. 8 is a block diagram illustrating a circuit for storing charge from a self capacitance sensor using a quasi-differential channel according to an embodiment.

FIG. 9 illustrates a block diagram of one embodiment of an electronic system having a processing device for storing charge from a mutual or self capacitance sensor according to an embodiment.

DETAILED DESCRIPTION

The following description sets forth numerous specific details such as examples of specific systems, components, methods, and so forth, in order to provide a good understanding of several embodiments of the present invention. It will be apparent to one skilled in the art, however, that at least some embodiments of the present invention may be practiced without these specific details. In other instances, well-known components or methods are not described in detail or are presented in simple block diagram format in order to avoid unnecessarily obscuring the present invention. Thus, the specific details set forth are merely exemplary. Particular implementations may vary from these exemplary details and still be contemplated to be within the scope of the present invention.

Embodiments of a method and apparatus for detecting an input to a capacitive sensor are described. In one embodiment, the sensor elements of a TX-RX capacitive sensor include at least one transmit (TX) electrode and at least one receive (RX) electrode. Each of the sensor elements, including the transmit and receive electrodes, has a parasitic capacitance C_(p) and a mutual capacitance C_(M). The parasitic capacitance of a sensor element is the capacitance between the sensor element and ground. The mutual capacitance of the sensor element is the capacitance between the sensor element and other sensor elements.

In one embodiment, a capacitance sensing circuit detects an input at the capacitive sensor by detecting a change in the capacitance of a sensor element. For example, a finger placed near a sensor element may cause a change in the capacitance of the sensor element. The magnitude of this change in capacitance can be detected and converted to a voltage level or a digital code that can be processed by a computer or other suitable circuit or device.

In one embodiment, for a mutual capacitive sensor having transmit and receive electrodes, a signal applied to a transmit electrode induces a current at a receive electrode due to capacitive coupling between the transmit and receive electrodes. The magnitude of the current induced at the receive electrode depends on the degree of capacitive coupling between the electrodes. The proximity of an object, such as a finger, near the electrodes may change the capacitance between the electrodes, as well as the capacitance between the electrodes and ground. This change in turn affects the amount of current induced at the receive electrode. Thus, the magnitude of the induced current reflects the change in capacitance of the transmit and receive electrodes due to the input. A charge based on the induced current is stored in a charge storage circuit, which may include a quasi-differential channel with two integration capacitors.

FIG. 1 is a block diagram illustrating a demodulation circuit for storing charge from a mutual capacitance sensor according to an embodiment. The demodulation circuit 100 receives a charge sensed by a mutual capacitance sensor device 110. The mutual capacitance sensor 110 may be part of a touch sensor array including a matrix of N×M electrodes (N receive electrodes and M transmit electrodes, where N and M can be any suitable equivalent or different numbers). The transmit and receive electrodes in the electrode matrix may be arranged so that each of the transmit electrodes intersects each of the receive electrodes. Thus, each transmit electrode is capacitively coupled with each of the receive electrodes. A transmit signal applied to each transmit electrode by a transmit driver 120 induces a current at each of the receive electrodes because of the capacitive coupling (C_(M)) between the transmit and receive electrodes. For instance, when the transmit signal is applied to transmit electrodes, the transmit signal induces a receive signal on the receive electrodes in the matrix. The receive signal on each of the receive electrodes can then be measured in sequence by using a multiplexor to connect each of the N receive electrodes to a demodulation circuit including a quasi-differential channel. For ease of explanation, the interaction between one transmit (TX) electrode 112 and one receive (RX) electrode 114 will be discussed. However, it is understood that the capacitance associated with each intersection in the matrix between a transmit electrode and a receive electrode can be sensed by selecting every available combination of a transmit electrode and a receive electrode, for example using multiplexors.

When a conductive object, such as a finger, approaches the intersection between the transmit electrode 112 and the receive electrode 114, the conductive object causes a decrease in capacitance C_(M) between the electrodes. The transmit electrode 112 may be either a row or a column in the sensor matrix with the receive electrode 114 being the other of a row and a column. In one embodiment, the sensor matrix can be part of an Indium Tin Oxide (ITO) touch sensor device, although other suitable types of touch sensor devices can be used. The induced current waveform at the receive electrode 114 is modified by the change in capacitance and that change is rectified by the demodulation circuit 100. In one embodiment, the demodulation circuit includes current conveyor 102, synchronous detect block 104 and charge storage circuit 106.

FIG. 2 is a block diagram illustrating a demodulation circuit for storing charge from a mutual capacitance sensor using a quasi-differential channel according to an embodiment. The mutual capacitance C_(M) represents the capacitance between a transmit electrode 112 and a receive electrode 114 of a touch sensor device. In one embodiment, a transmit driver circuit 120 drives a transmit voltage V_(C1) onto the transmit electrode 112. The transmit driver circuit 120 may be formed, for example, by two transistors coupled between a supply voltage V_(CC) and ground. The transmit driver is controlled by a control signal T_(XD) which may be supplied by a synchronous control logic circuit (not shown). The control signal T_(XD) alternately causes the transmit driver circuit 120 to supply a high supply voltage of V_(CC) as V_(C1) and then on a subsequent clock cycle, a low supply voltage, such as for example a ground voltage, as V_(C1). In one embodiment, V_(CC) has a potential of 5 V, however, in alternative embodiments V_(CC) has some other suitable potential. In other embodiments, some other appropriate low voltage potential may be used in place of ground, such as a negative supply voltage.

The receive electrode 114 of the mutual capacitance sensor is coupled to a low impedance input (X) of a current conveyor 102. In one embodiment, the current conveyor 102 comprises a current conveyor type two (CCII) or other appropriate type of circuit or device, such as, for example, a suitable configuration of operation amplifiers. The current conveyor 102 receives a voltage supply signal at a high impedance input (Y). In one embodiment, the voltage supply signal is received from reference voltage generator 230. Reference voltage generator 230 may be controlled by a control signal V_(REF). The current conveyor 102 mirrors the voltage supply received at the input Y to the input X. The current conveyor 102 holds the voltage level at the input X at a constant voltage level (V_(X)), regardless of the current (I_(X)) induced at that terminal. In one embodiment, the voltage level V_(X) may be V_(CC)/2 (e.g., 2.5 V). Maintaining the receive electrode 114 at a constant voltage V_(X) prevents the current I_(X) from being influenced by the parasitic capacitance C_(p) between the electrodes 112, 114 and ground.

As the transmit driver circuit 120 pulls the voltage V_(C1) on the transmit electrode 112 to V_(CC), the current I_(X) flows from V_(C1) through the mutual capacitance C_(M) to V_(X) and into the input X of the current conveyor 102. Conversely, when the voltage V_(C1) is pulled to ground, the current I_(X) is reversed, flowing from a source in the input X of the current conveyor 102. The current conveyor 102 senses the current I_(X) and mirrors the current at a bipolar output I_(Z+). In one embodiment, when the current I_(X) is sourced at input X, an output current is also sourced at output I_(Z+). Likewise, when the current I_(X) is sinked in input X, the output current is sinked at output I_(Z+). Output I_(Z−) of current conveyor 102 inverts the current at I_(Z+), and may be used in some embodiments.

The output current from I_(Z+), passes through a synchronous detect block 104. In one embodiment, the synchronous detect block 104 includes switches 207 and 208. Switches 207 and 208 may be controlled by control signals Phi1 and Phi2, generated by the synchronous control logic circuit (not shown). The output of the synchronous detect block 104 is coupled to the quasi-differential capacitance block 206. In one embodiment, the quasi-differential capacitance block 206 includes positive integration capacitor C_(INTP) and negative integration capacitor C_(INTN). In one embodiment, when the output current at I_(Z+) is positive, switch 207 is activated while switch 208 is opened, allowing the current T_(OUTP) to flow to the output node V_(OUTP). The current I_(OUTP) charges up the positive integration capacitor C_(INTP). When the output current at I_(Z+) is negative, switch 208 is activated while switch 207 is opened, allowing the current I_(OUTN) to flow to the output node V_(OUTN). In one embodiment, the current I_(OUTN) discharges the negative integration capacitor C_(INTN). Alternatively, in another embodiment, the current I_(OUTN) charges C_(INTN) with a negative voltage. For example, if one node of C_(INTN) is held at, for example, 4V, I_(OUTN) can charge C_(INTN) to, for example, 1V with a negative charge. As the current is alternately switched between the integration capacitors, the voltages at output nodes V_(OUTP) and V_(OUTN) grow apart differentially. The differential voltage between output nodes V_(OUTP) and V_(OUTN) can be applied to suitable processing circuitry (not shown) to detect the presence of a conductive object at the mutual capacitive sensor C_(M).

FIG. 3 is a waveform diagram illustrating the waveforms in a demodulation circuit using a quasi-differential channel according to an embodiment. The waveform T_(XD) represents the control signal applied to a control terminal of transmit driver 120. In one embodiment, T_(XD) is a digital clock signal supplied by a synchronous control logic block. In one embodiment, the transmit driver 120 functions as an inverter, such that when the signal T_(XD) is high, the transmit driver 120 pulls the voltage at V_(C1) low. The waveform V_(C1) represents the voltage level at the transmit electrode 112, coupled to the output of transmit driver 120. As can be seen from the waveforms, when the signal T_(XD) is high, the voltage V_(C1) is pulled low, and when the signal T_(XD) is low, the voltage V_(C1) is pulled high.

The waveform I_(X) represents the current flowing across the mutual capacitance C_(M) and into the input X of current conveyor 102. As discussed above, the voltage at the receive electrode 114 is kept constant at some fraction of the supply voltage (e.g., V_(CC)/2). Thus, when the voltage V_(C1) on transmit electrode 112 is pulled high to V_(CC), the resulting voltage differential induces a current I_(X) across C_(M) and into the input X of current conveyor 102. In one embodiment, this current sinked in the current conveyor 102 is referred to as a positive current, as is indicated in the waveform I_(X). When the voltage V_(C1) on transmit electrode 112 is pulled low (e.g., to a ground potential), the voltage differential induces a current I_(X) across C_(M) out of the input X of current conveyor 102. In one embodiment, this current sourced in the current conveyor 102 is referred to as a negative current, as is indicated in the waveform I_(X).

The current conveyor 102 mirrors the current I_(X) at the bipolar output I_(Z+). The waveform I_(Z+) represents the current at the bipolar output. When the current I_(X) is sourced at input X, an output current is also sourced at output I_(Z+). In one embodiment, this current is referred to as a positive current Likewise, when the current I_(X) is sinked in input X, the output current is sinked at output I_(Z+). In one embodiment, this current is referred to as a negative current.

The waveforms Phi1 and Phi2 represent the control signals for switches 207 and 208, respectively. In one embodiment, Phi1 and Phi2 are generated by the synchronous control logic block. The synchronous control logic block causes the signal Phi1 to be high when the signal T_(XD) is high, because the resulting current at I_(Z+) will be positive. The high signal Phi1 causes switch 207 to close allowing a current I_(OUTP) to flow to output node V_(OUTP). The current I_(OUTP) charges up the integration capacitor C_(INTP), causing the output voltage to increase, as shown in the waveform V_(OUTP). The synchronous control logic block further causes the signal Phi2 to be high when the signal T_(XD) is low, because the resulting current at I_(Z+) will be negative. The high signal Phi2 causes switch 208 to close allowing a current I_(OUTN) to flow to output node V_(OUTN). The current I_(OUTN) discharges the integration capacitor C_(INTN), causing the output voltage to decrease, as shown in the waveform V_(OUTN). In one embodiment, the waveforms Phi1 and Phi2 are non-overlapping and the waveform T_(XD) is delayed with respect to Phi1 and Phi2, such that Phi1 and Phi2 have changed state before T_(XD) changes.

Referring again to FIG. 2, the demodulator circuit may include a baseline compensation circuit 240. The baseline capacitance of a sensor element may be described as the capacitance of the sensor element when no input (i.e., a finger touch) is present. The ability to detect the presence of a conductive object may be degraded if the baseline capacitance, resulting from C_(p) and C_(M), is large in comparison to the measured capacitance. Small variations of C_(M) may be difficult to detect when measured in the presence of the large base value of C_(M). Thus, in one embodiment, the effects of base value of C_(M) are compensated with baseline compensation circuit 240. In one embodiment, the baseline compensation circuit 240 may include a current output or switched current digital-to-analog converter (IDAC). The IDAC is configured, via control signal IDAC_(EN), to subtract a portion of the positive and negative output currents I_(OUTP) and I_(OUTN) during each clock cycle. The amount that is subtracted from the output currents may be programmable via IDAC_(EN). Switches pwc1 and pwC2 control which output current is subtracted. Switches pwc1 and pwC2 may be controlled by a signal from the synchronous logic control circuit. In one example, where the mutual capacitance C_(M) has a baseline charge value of 1 picocoulomb (pC), the presence of a conductive object near the sensor may only cause a small increase in charge (e.g., 10% or 0.1 pC). Thus, the charge output by the current conveyor 102 would be 1.1 pC. In the example, the baseline IDAC subtracts 90% of the baseline charge (i.e., 0.9 pC) from each of currents I_(OUTP) and I_(OUTN), resulting in a baseline of 0.1 pC and a measured value of 0.2 pC. This 100% increase is significantly easier to detect than the 10% increase attributable to the conductive object. In other embodiments, some other suitable percentage may be used for baseline compensation. The baseline compensation scheme is designed to remove as much DC content from the input current as possible to better detect a change in C_(M) and to increase the signal-to-noise ratio.

In one embodiment, the integration capacitors C_(INTP) and C_(INTN) are pre-charged to a certain voltage level. Depending on the technology used to implement the circuit, a certain amount of headroom may be used. In one embodiment, where the supply voltage is, for example, 5V, the positive integration capacitor C_(INTP) may be pre-charged to, for example, 1V and the negative integration capacitor C_(INTN) may be pre-charged to, for example, 4V, allowing 1V of headroom on either end of the supply range. In one embodiment, the pre-charging is accomplished using voltages from reference generator 230 where the application of the voltage levels is controlled by switches SW1 and SW2.

FIG. 4 is a flowchart illustrating a method 400 of storing charge from a mutual capacitance sensor using a quasi-differential channel according to an embodiment. At block 405, method 400 pre-charges the integration capacitors of the quasi-differential channel. At block 410, method 400 sets the low impedance input of a current conveyor, such as current conveyor 102, to a constant voltage. At block 415, method 400 alternately pulls the transmit electrode of the mutual capacitance sensor to the supply voltage V_(CC) and ground (e.g., 0V). The voltage may be applied to the transmit electrode using, for example, the transmit driver circuit 120 of FIG. 2. At block 420, method 400 induces a current across the mutual capacitance sensor that is alternately sourced and sinked in the low impedance input of the current conveyor.

At block 425, method 400 senses the current at the low impedance input of the current conveyor. The current may be affected by the presence of a conductive object near the mutual capacitance sensor. At block 430, method 400 mirrors the sensed input current at a bipolar output of the current conveyor. At block 435, method 400 switches the current to flow to either the positive or negative output node. When the current at the bipolar output of the current conveyor is positive, switch 207 is activated, and when the current is negative, switch 208 is activated.

At block 440, a programmable amount of charge is subtracted from each of the positive and negative currents to compensate for the baseline capacitance of the mutual capacitance sensor. At block 445, the remaining charge is stored in the integration capacitors. The charge from the positive output current is stored in the positive integration capacitor, causing the positive output voltage to increase. The negative output current discharges the negative integration capacitor, causing the negative output voltage to decrease. At block 450, the quasi-differential voltage between the positive output node and the negative output node is output to processing circuitry for determination of whether a conductive object is present.

In one embodiment, the processing circuitry (described below with respect to FIG. 6) determines the presence of a conductive object based on the difference between two mean values. Noise and other interference in the system may cause variations in the output voltages over time. Thus, in one embodiment, a series of values are stored and a mean value is calculated for the baseline capacitance (i.e., when no conductive object is present) and for the sensed capacitance (i.e., when a conductive object is present). As the number of samples in the series of values increases, the mean values become more accurate. In one embodiment, 100 samples may be used to calculate the mean values, although any suitable number of samples may be used. A sample may correspond to one period of the T_(XD) clock signal and may include the storing of charge on each of the positive and negative integration capacitors. In order to store 100 samples on the integration capacitors, the capacitors would have to be very large. Therefore, at block 455, method 400 can perform one or more subconversions. A subconversion includes storing the charge for a smaller number of clock cycles (e.g., 10 cycles, 20 cycles, or any appropriate smaller number of clock cycles) and outputting the voltage levels to the processing circuitry. In one example where a subconversion includes 10 cycles, 10 subconversions would be performed to achieve the 100 samples needed to calculate the mean values. In other embodiments, a subconversion may include some other suitable number of samples, and some other suitable number of samples may be used to calculate the mean values.

FIG. 5 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor according to an embodiment. In this embodiment, the output current from both I_(Z+) and I_(Z−) (i.e., I_(OUTP) and I_(OUTN)) are passed through synchronous detect block 504. In one embodiment, the synchronous detect block 504 includes switches 507 and 508. Switches 507 and 508 may be controlled by control signals Phi1 and Phi2, generated by the synchronous control logic circuit (not shown). The output of the synchronous detect block 504 is coupled to the charge storage circuit 506. In one embodiment, the charge storage circuit 506 includes positive integration capacitor C_(INTP) and negative integration capacitor C_(INTN). In one embodiment, when the output current at I_(Z+) is positive, switch 507 is activated while switch 508 is opened, allowing the current I_(OUTP) to flow to the output node V_(OUT). The current I_(OUTP) charges up the positive integration capacitor C_(INTP). When the output current at I_(Z−) is negative, switch 508 is activated while switch 507 is opened, allowing the current I_(OUTN) to flow to the output node V_(OUT). In one embodiment, the current I_(OUTN) discharges the negative integration capacitor C_(INTN). Alternatively, in another embodiment, the current I_(OUTN) charges C_(INTN) with a negative voltage. The voltage at output node V_(OUT) can be applied to suitable processing circuitry (not shown) to detect the presence of a conductive object at the mutual capacitive sensor C_(M).

In one embodiment, IDAC 540 is a single ended IDAC configured, via control signal IDAC_(EN), to perform baseline compensation by subtracting a portion of the output current during each clock cycle. The amount that is subtracted from the output current may be programmable via IDAC_(EN). Switch pwc1 controls when output current is subtracted.

FIG. 6 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor using a single capacitor to ground according to an embodiment. Output I_(Z−) of current conveyor 102 inverts the current at I_(Z+), and may be used in an embodiment where there is a single integration capacitor coupled to ground. In this embodiment, the currents from outputs I_(Z+), and I_(Z−) are alternately applied to the integration capacitor C_(INT) through a switching circuit 504. The change in charge stored on the integration capacitor can be used to detect the presence of a conductive object, when the output voltage V_(OUT) is applied to suitable processing circuitry.

FIG. 7 is a block diagram illustrating a circuit for storing charge from a mutual capacitance sensor in a differential mode according to an embodiment. In one embodiment, there are two or more mutual capacitance sensors, C_(MA) and C_(MB), each representing the capacitance between a transmit electrode and a receive electrode of a touch sensor device. In one embodiment, the transmit driver circuit 120 drives a transmit voltage V_(C1) onto the transmit electrode of both mutual capacitance sensors. The receive electrode for each mutual capacitance sensor is coupled to a current conveyor 702A and 702B. Each current conveyor senses the current across the mutual capacitance sensor, I_(XA) and I_(XB), and mirrors the current at a bipolar output I_(Z+).

In one embodiment, the output current from both I_(Z+), and I_(Z−) of each current conveyor 702A and 702B (i.e., I_(OUTP) and I_(OUTN)) is passed through synchronous detect block 704. In one embodiment, the synchronous detect block 704 includes switches 707, 708, 709 and 710. Switches 707-710 may be controlled by one of control signals Phi1 and Phi2, generated by the synchronous control logic circuit (not shown). In one embodiment, switches 707 and 710 are controlled by Phi1 and switches 708 and 709 are controlled by Phi2. The output of the synchronous detect block 704 is coupled to the charge storage circuit 706. In one embodiment, the charge storage circuit 706 includes a single integration capacitor C_(INT) coupled to ground or some other suitable low supply voltage. In one embodiment, when the control signal Phi1 is activated, positive charge flows onto C_(INT) from I_(Z+) of current conveyor 702A and negative charge flows onto C_(INT) from I_(Z−) of current conveyor 702B. Since the output current from current conveyor 702A is affected by the mutual capacitance sensor C_(MA), the presence of a conductive object proximate to C_(MA) will cause the voltage at V_(OUT) to decrease. Conversely, the presence of a conductive object proximate to mutual capacitance sensor C_(MB) will cause the voltage at V_(OUT) to increase.

When the control signal Phi2 is activated, negative charge flows onto C_(INT) from I_(Z−) of current conveyor 702A and positive charge flows onto C_(INT) from I_(Z+) of current conveyor 702B. Accordingly, the presence of a conductive object proximate to C_(MA) will cause the voltage at V_(OUT) to increase, while the presence of a conductive object proximate to mutual capacitance sensor C_(MB) will cause the voltage at V_(OUT) to decrease. The voltage at output node V_(OUT) can be applied to suitable processing circuitry (not shown) to detect the presence of a conductive object at the mutual capacitive sensors C_(MA) and C_(MB).

FIG. 8 is a block diagram illustrating a circuit for storing charge from a self capacitance sensor using a quasi-differential channel according to an embodiment. The self capacitance C_(SE) represents the capacitance between one electrode 816 of a touch sensor device and ground. The electrode 816 of the self capacitance sensor is coupled to a low impedance input (X) of a current conveyor 102. In one embodiment, the current conveyor 102 can comprise a current conveyor type two (CCII) or other suitable type of circuit or device, such as, for example, a suitable configuration of operation amplifiers. The current conveyor 102 receives a voltage supply signal at a high impedance input (Y). In one embodiment the voltage supply signal is received from reference voltage generator 230. The current conveyor 102 mirrors the voltage supply received at the input Y to the input X.

In one embodiment, the voltage V_(C2) at the electrode 816 is controlled by varying the supply voltage at the input Y of current conveyor 102. As the voltage V_(C2) is increased, a current I_(X2) flows out of the input X of current conveyor 102 and through self capacitance C_(SE). As the voltage V_(C2) is decreased, the current I_(X2) flows into the input X of current conveyor 102. The current conveyor 102 senses the current I_(X2) and mirrors the current at a bipolar output I_(Z+). In one embodiment, when the current I_(X) is sourced at input X, an output current is also sourced at output I_(Z+). Likewise, when the current I_(X) is sinked in input X, the output current is sinked at output I_(Z+).

The output current from I_(Z+) passes through a synchronous detect block 104. In one embodiment, the synchronous detect block 104 includes switches 207 and 208. Switches 207 and 208 may be controlled by control signals Phi1 and Phi2, generated by the synchronous control logic circuit (not shown). The output of the synchronous detect block 104 is coupled to the quasi-differential capacitance block 206. In one embodiment, the quasi-differential capacitance block 206 includes positive integration capacitor C_(INTP) and negative integration capacitor C_(INTN). In one embodiment, when the output current at I_(Z+) is positive, switch 207 is activated while switch 208 is opened, allowing the current I_(OUTP) to flow to the output node V_(OUTP). The current I_(OUTP) charges up the positive integration capacitor C_(INTP). When the output current at I_(Z+) is negative, switch 208 is activated while switch 207 is opened, allowing the current I_(OUTN) to flow to the output node V_(OUTN). The current I_(OUTN) discharges the negative integration capacitor C_(INTN). As the current is alternately switched between the integration capacitors, the voltages at output nodes V_(OUTP) and V_(OUTN) grow apart differentially. The differential voltage between output nodes V_(OUTP) and V_(OUTN) can be applied to processing circuitry (not shown) to detect the presence of a conductive object at the self capacitive sensor C_(SE).

In one embodiment, the transmit driver circuit 820 drives a transmit voltage onto one terminal of a shield capacitor C_(SHIELD). The transmit driver circuit 820 may include a voltage divider formed, for example, by two transistors coupled between two voltages, V_(SHIELD) _(—) _(HI) and V_(SHIELD) _(—) _(LO). V_(SHIELD) _(—) _(HI) and V_(SHIELD) _(—) _(LO) may be supplied by reference voltage generator 230. The transmit driver circuit 820 is controlled by a control signal T_(XD) which may be supplied by a synchronous control logic circuit (not shown). The control signal T_(XD) alternately causes the transmit driver circuit 820 to supply a voltage of V_(SHIELD) _(—) _(HI) to C_(SHIELD), and then on a subsequent clock cycle, V_(SHIELD) _(—) _(LO). The shield capacitance reduces the effect of parasitic capacitance on the self capacitance sensor C_(SE).

FIG. 9 illustrates a block diagram of one embodiment of an electronic system 900 having a processing device for storing charge from a mutual or self capacitance sensor using a quasi-differential channel according to an embodiment. In one embodiment, electronic system 900 may include the method and apparatus described hereinbefore and illustrated in FIGS. 1 through 8. For purposes of illustration and not limitation, electronic system 900 can include, for example, processing device 990, touch-sensor pad 920, touch-sensor slider 930, touch-sensor buttons 940, host processor 950, embedded controller 960 and non-capacitive sensor elements 970. The processing device 990 may include analog and/or digital general purpose input/output (“GPIO”) ports 907. GPIO ports 907 may be programmable. GPIO ports 907 may be coupled to a Programmable Interconnect and Logic (“PIL”), which acts as an interconnect between GPIO ports 907 and a digital block array of the processing device 990 (not illustrated). The digital block array may be configured to implement a variety of digital logic circuits (e.g., DAC, digital filters, digital control systems, and the like) using, in one embodiment, configurable user modules (“UMs”). The digital block array may be coupled to a system bus. Processing device 990 may also include memory, such as random access memory (RAM) 905 and program flash 904. RAM 905 may be static RAM (SRAM), and program flash 904 may be a non-volatile storage, which may be used to store firmware (e.g., control algorithms executable by processing core 902 to implement operations described herein). Processing device 990 may also include a memory controller unit (MCU) 903 coupled to memory and the processing core 902.

The processing device 990 may also include an analog block array (not illustrated). The analog block array is also coupled to the system bus. Analog block array also may be configured to implement a variety of analog circuits (e.g., ADC, analog filters, etc.) using, in one embodiment, configurable UMs. The analog block array may also be coupled to the GPIO 907.

As illustrated, capacitive sensor 910 may be integrated into processing device 990. Capacitive sensor 910 may include analog I/O for coupling to an external component, such as touch-sensor pad 920, touch-sensor slider 930, touch-sensor buttons 940, and/or other devices.

It should be noted that the embodiments described herein are not limited to touch-sensor pads for notebook implementations, but can be used in any other suitable type of capacitive sensing implementation. For example, the sensing device may be a touch-sensor slider 930, or a touch-sensor button 940 (e.g., capacitance sensing button). Similarly, the operations described herein are not limited to notebook cursor operations, but can include other appropriate types of operations, such as lighting control (dimmer), volume control, graphic equalizer control, speed control or other control operations requiring gradual adjustments. It should also be noted that these embodiments of capacitive sensing implementations may be used in conjunction with non-capacitive sensing elements, including but not limited to pick buttons, sliders (e.g., display brightness and contrast), scroll-wheels, multi-media control (e.g., volume, track advance, and the like), handwriting recognition, and numeric keypad operation.

In one embodiment, the electronic system 900 includes a touch-sensor pad 920 coupled to the processing device 990 via bus 921. Touch-sensor pad 920 may include a multi-dimension sensor array. The multi-dimension sensor array comprises a plurality of sensor elements, organized as rows and columns. In an alternative embodiment, the electronic system 900 includes a touch-sensor slider 930 coupled to the processing device 990 via bus 931. Touch-sensor slider 930 may include a single-dimension sensor array. The single-dimension sensor array comprises a plurality of sensor elements, organized as rows, or, alternatively, as columns. In another embodiment, the electronic system 900 includes a touch-sensor button 940 coupled to the processing device 990 via bus 941. Touch-sensor button 940 may include a single-dimension or multi-dimension sensor array. The single- or multi-dimension sensor array comprises a plurality of sensor elements. For a touch-sensor button, the plurality of sensor elements may be coupled together to detect a presence of a conductive object over the entire surface of the sensing device. Alternatively, the touch-sensor button 940 has a single sensor element to detect the presence of the conductive object. In one embodiment, the touch-sensor button 940 may be a capacitive sensor element. Capacitive sensor elements may be used as non-contact switches. These switches, when protected by an insulating layer, offer resistance to severe environments.

The electronic system 900 may include any combination of one or more of the touch-sensor pad 920, touch-sensor slider 930, touch-sensor button 940 and/or capacitive pressure sensor 975. In an alternative embodiment, the electronic system 900 may also include non-capacitive sensor elements 970 coupled to the processing device 990 via bus 971. The non-capacitive sensor elements 970 may include buttons, light emitting diodes (LEDs), and other user interface devices, such as a mouse, a keyboard or other functional keys that do not require capacitance sensing. In one embodiment, buses 971, 941, 931 and 921 may be a single bus. Alternatively, these buses may be configured into any combination of one or more separate buses.

The processing device may also provide value-added functionality, such as keyboard control integration, LEDs, battery charger and general purpose I/O, as illustrated as non-capacitive sensor elements 970. Non-capacitive sensor elements 970 are coupled to the GPIO 907.

The processing device 990 can include other suitable types of circuits, modules, arrays, and other like analog and digital elements. For example, processing device 990 may include internal oscillator/clocks 906 and communication block 908. The oscillator/clocks block 906 provides clock signals to one or more of the components of processing device 990. Communication block 908 may be used to communicate with an external component, such as a host processor 950, via host interface (I/F) line 951. Alternatively, processing device 990 may also be coupled to embedded controller 960 to communicate with the external components, such as host 950. Interfacing to the host 950 can be through various methods. In one exemplary embodiment, interfacing with the host 950 may be done using a standard PS/2 interface to connect to an embedded controller 960, which in turn sends data to the host 950 via low pin count (LPC) interface. In some instances, it may be beneficial for the processing device 990 to do both touch-sensor pad and keyboard control operations, thereby freeing up the embedded controller 960 for other housekeeping functions. In another exemplary embodiment, interfacing may be done using a universal serial bus (USB) interface directly coupled to the host 950 via host interface line 951. Alternatively, the processing device 990 may communicate to external components, such as the host 950, using industry standard interfaces, such as USB, PS/2, inter-integrated circuit (I2C) bus, system packet interfaces (SPI), or any other suitable type of interface. In one embodiment, the host 950 and/or embedded controller 960 may be coupled to the processing device 990 with a ribbon or flex cable from an assembly, which houses the sensing device and processing device.

In one embodiment, the processing device 990 is configured to communicate with the embedded controller 960 or the host 950 to send and/or receive data. The data may be a command or alternatively a signal. In an exemplary embodiment, the electronic system 900 may operate in both standard-mouse compatible and enhanced modes. The standard-mouse compatible mode utilizes the HID class drivers already built into the Operating System (OS) software of host 950. These drivers enable the processing device 990 and sensing device to operate as a standard cursor control user interface device, such as a two-button PS/2 mouse. The enhanced mode may enable additional features such as scrolling (reporting absolute position) or disabling the sensing device, such as when a mouse is plugged into the notebook. Alternatively, the processing device 990 may be configured to communicate with the embedded controller 960 or the host 950 using non-OS drivers, such as dedicated touch-sensor pad drivers, or other drivers known by those of ordinary skill in the art.

In other words, the processing device 990 may operate to communicate data (e.g., commands or signals) using hardware, software, and/or firmware, and the data may be communicated directly to the processing device of the host 950, such as a host processor, or alternatively, may be communicated to the host 950 via drivers of the host 950, such as OS drivers or other non-OS drivers. It should also be noted that the host 950 may directly communicate with the processing device 990 via host interface 951.

In one embodiment, the data sent to the host 950 from the processing device 990 includes click, double-click, movement of the cursor, scroll-up, scroll-down, scroll-left, scroll-right, step back, step forward, Rewind, Fast Forward, Play, Stop, and the like. Alternatively, other user interface device commands and/or signals may be communicated to the host 950 from the processing device 990. These commands may be based on gestures occurring on the sensing device that are recognized by the processing device, such as tap, push, hop, and zigzag gestures. Alternatively, other commands and/or signals may be recognized. For example, signals may be sent that indicate the recognition of these operations.

In particular, a tap gesture, for example, may be a user's finger (e.g., conductive object) that is on the sensing device for less than a threshold time. If the time the finger is placed on the touchpad is greater than the threshold time, it may be considered to be a movement of the cursor, in the x- or y-axes. Scroll-up, scroll-down, scroll-left, and scroll-right, step back, and step-forward may be detected when the absolute position of the conductive object is within a pre-defined area, and movement of the conductive object is detected.

Processing device 990 may reside on a common carrier substrate such as, for example, an integrated circuit (IC) die substrate, a multi-chip module substrate or the like. Alternatively, the components of processing device 690 may be one or more separate integrated circuits and/or discrete components. In one exemplary embodiment, processing device 990 may be a Programmable System on a Chip (PSoC™) processing device, manufactured by Cypress Semiconductor Corporation, San Jose, Calif. Alternatively, processing device 990 may be one or more other processing devices known by those of ordinary skill in the art, such as a microprocessor or central processing unit, a controller, special-purpose processor, digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. In an alternative embodiment, for example, the processing device 990 may be a network processor having multiple processors including a core unit and multiple microengines. Additionally, the processing device 990 may include any combination of general-purpose processing device(s) and special-purpose processing device(s).

In one embodiment, one or more processing devices, such as processing device 690, may be used in a master/slave configuration. For example, one processing device may operate as the master and one or more processing devices may operate as the slave(s). The processing devices may be configured so that the master provides a clock signal and start of scan signal to the slaves, which perform a scan of a touch sensor device, such as for example, touch-sensor pad 920. The results of the scan may be sent back to the master. In other embodiments, another processing device is used to control operation of the master and slaves and stores the results of the scans. The master/slave configuration may be effective when the touch-sensor pad 920 is relatively large by having many parallel channels (e.g., 8 channels per chip).

It should be noted that the embodiments described herein are not limited to having a configuration of a processing device coupled to a host, but may include a system that measures the capacitance on the touch-sensing device and sends the new data to a host computer where it is analyzed by an application. In effect, the processing that is done by processing device 990 may also be done (in whole or in part) in the host.

In one embodiment, the method and apparatus described herein may be implemented in a fully self-contained touch-sensor pad, which outputs fully processed x/y movement and gestures data signals or data commands to a host. In an alternative embodiment, the method and apparatus may be implemented in a touch-sensor pad, which outputs x/y movement data and also finger presence data to a host, and where the host processes the received data to detect gestures. In another embodiment, the method and apparatus may be implemented in a touch-sensor pad, which outputs raw capacitance data to a host, where the host processes the capacitance data to compensate for quiescent and stray capacitance, and calculate x/y movement and detects gestures by processing the capacitance data. Alternatively, the method and apparatus may be implemented in a touch-sensor pad, which outputs pre-processed capacitance data to a host, where the touch-sensor pad processes the capacitance data to compensate for quiescent and stray capacitance, and the host calculate x/y movement and detects gestures from the pre-processed capacitance data.

In one embodiment, the electronic system that includes the embodiments described herein may be implemented in a conventional laptop touch-sensor pad. Alternatively, it may be implemented in a wired or wireless keyboard integrating a touch-sensor pad, which is itself connected to a host. In such an implementation, the processing described above as being performed by the “host” may be performed in part or in whole by the keyboard controller, which may then pass fully processed, pre-processed or unprocessed data to the system host. In another embodiment, the embodiments may be implemented in a mobile handset (e.g., cell phone) or other electronic devices where the touch-sensor pad may operate in one of two or more modes. For example, the touch-sensor pad may operate either as a touch-sensor pad for x/y positioning and gesture recognition, or as a keypad or other array of touch-sensor buttons and/or sliders.

Capacitive sensor 910 may be integrated into the IC of the processing device 990, or alternatively, in a separate IC. Alternatively, descriptions of capacitive sensor 910 may be generated and compiled for incorporation into other integrated circuits. For example, behavioral level code describing capacitive sensor 910, or portions thereof, may be generated using a hardware descriptive language, such as VHDL or Verilog, and stored to a machine-accessible medium (e.g., CD-ROM, hard disk, floppy disk, or the like). Furthermore, the behavioral level code can be compiled into register transfer level (“RTL”) code, a netlist or even a circuit layout and stored to a machine-accessible medium. The behavioral level code, the RTL code, the netlist and the circuit layout all represent various levels of abstraction to describe capacitive sensor 910.

It should be noted that the components of electronic system 900 may include all the components described above. Alternatively, electronic system 900 may include only some of or more than the components described above.

In one embodiment, electronic system 900 may be used in a notebook computer. Alternatively, the electronic system 900 may be used in other applications, such as a mobile handset, a personal data assistant (PDA), a keyboard, a television, a remote control, a monitor, a handheld multi-media device, a handheld video player, a handheld gaming device, a control panel, or other suitable type of device, application, or system.

In one embodiment, capacitive sensor 910 may be a capacitive sensor relaxation oscillator (CSR). The CSR may have an array of capacitive touch switches using a current-programmable relaxation oscillator, an analog multiplexer, digital counting functions and high-level software routines to compensate for environmental and physical switch variations. The switch array may include combinations of independent switches, sliding switches (e.g., touch-sensor slider), and touch-sensor pads implemented as a pair of orthogonal sliding switches. The CSR may include physical, electrical, and software components. The physical component may include the physical switch itself, typically a pattern constructed on a printed circuit board (PCB) with an insulating cover, a flexible membrane or a transparent overlay. The electrical component may include an oscillator or other means to convert a changed capacitance into a measured signal. The electrical component may also include a counter or timer to measure the oscillator output. The software component may include detection and compensation software algorithms to convert the count value into a switch detection decision. For example, in the case of slide switches or X-Y touch-sensor pads, a calculation for finding position of the conductive object to greater resolution than the physical pitch of the switches may be used.

It should be noted that there are various known methods for measuring capacitance. Although the embodiments described herein are described using a relaxation oscillator, the present embodiments are not limited to using relaxation oscillators, but may include other methods, such as current versus voltage phase shift measurement, resistor-capacitor charge timing, capacitive bridge divider, charge transfer, or the like.

In one method, the current versus voltage phase shift measurement may include driving the capacitance through a fixed-value resistor to yield voltage and current waveforms that are out of phase by a predictable amount. The drive frequency can be adjusted to keep the phase measurement in a readily measured range. In another method, the resistor-capacitor charge timing may include charging the capacitor through a fixed resistor and measuring timing on the voltage ramp. Small capacitor values may require very large resistors for reasonable timing. In an alternative method, the capacitive bridge divider may include driving the capacitor under test through a fixed reference capacitor. The reference capacitor and the capacitor under test form a voltage divider. The voltage signal is recovered with a synchronous demodulator, which may be done in the processing device 990. In another method, the charge transfer may be conceptually similar to an R-C charging circuit. In this method, C_(p) is the capacitance being sensed. C_(SUM) is the summing capacitor, into which charge is transferred on successive cycles. At the start of the measurement cycle, the voltage on C_(SUM) is reset. The voltage on C_(SUM) increases exponentially (and only slightly) with each clock cycle. The time for this voltage to reach a specific threshold is measured with a counter. Additional details regarding these alternative embodiments have not been included so as to not obscure the present embodiments, and because these alternative embodiments for measuring capacitance are known by those of ordinary skill in the art.

Embodiments of the present invention include various operations described herein. These operations may be performed by hardware components, software, firmware, or a combination thereof. Any of the signals provided over various buses described herein may be time multiplexed with other signals and provided over one or more common buses. Additionally, the interconnection between circuit components or blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be one or more single signal lines and each of the single signal lines may alternatively be buses.

Certain embodiments may be implemented as a computer program product that may include instructions stored on a machine-readable medium. These instructions may be used to program a general-purpose or special-purpose computer or processor to perform the described operations. A machine-readable medium includes any mechanism for storing or transmitting information in a form (e.g., software, processing application) readable by a machine (e.g., a computer). The machine-readable medium may include, but is not limited to, magnetic storage medium (e.g., floppy diskette), optical storage medium (e.g., CD-ROM), magneto-optical storage medium, read-only memory (ROM), random-access memory (RAM), erasable programmable memory (e.g., EPROM and EEPROM), flash memory, or another appropriate type of medium suitable for storing electronic instructions.

Additionally, some embodiments may be practiced in distributed computing environments where the machine-readable medium is stored on and/or executed by more than one computer system. In addition, the information transferred between computer systems may either be pulled or pushed across the communication medium connecting the computer systems.

The digital processing devices described herein may include one or more general-purpose processing devices such as a microprocessor or central processing unit, a controller, or the like. Alternatively, the digital processing device may include one or more special-purpose processing devices such as a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. In an alternative embodiment, for example, the digital processing device may be a network processor having multiple processors including a core unit and multiple microengines. Additionally, the digital processing device may include any combination of general-purpose processing devices and special-purpose processing devices.

Although the operations of the methods herein are shown and described in a particular order, the order of the operations of each method may be altered so that certain operations may be performed in an inverse order or so that certain operation may be performed, at least in part, concurrently with other operations. In another embodiment, instructions or sub-operations of distinct operations may be in an intermittent and/or alternating manner. 

What is claimed is:
 1. A method implemented by a computing device programmed to perform the following, the method comprising: measuring a current across a sense capacitor; conveying the current to a charge storage circuit to generate a first output voltage signal and a second output voltage signal; and detecting a presence of a conductive object proximate to the sense capacitor based on a difference between the first output voltage signal and the second output voltage signal.
 2. The method of claim 1, further comprising: alternately driving a first electrode of the sense capacitor with a high supply voltage and a low supply voltage; and holding a second electrode of the sense capacitor at a fixed voltage level, wherein the second electrode is coupled to a current conveyor that conveys the current to the charge storage circuit.
 3. The method of claim 1, wherein the charge storage circuit comprises a capacitor circuit.
 4. The method of claim 1, wherein the charge storage circuit comprises a quasi-differential capacitor circuit comprising a positive integration capacitor and a negative integration capacitor.
 5. The method of claim 4, further comprising: pre-charging the positive integration capacitor to a first voltage level; and pre-charging the negative integration capacitor to a second voltage level.
 6. The method of claim 4, further comprising: mirroring the current across the sense capacitor at an output of a current conveyor that conveys the current to the charge storage circuit.
 7. The method of claim 6, wherein storing the charge from the current comprises: charging the positive integration capacitor when the current at the output of the current conveyor is positive; and discharging the negative integration capacitor when the current at the output of the current conveyor is negative.
 8. The method of claim 4, further comprising: outputting a voltage level stored on the positive integration capacitor to a processing circuit as the first output voltage signal; and outputting a voltage level stored on the negative integration capacitor to the processing circuit as the second output voltage signal.
 9. The method of claim 8, further comprising: performing one or more subconversions to output the voltage levels stored on the positive and negative integration capacitors to the processing circuit; and accumulating results of the one or more subconversions to determine a total change in capacitance.
 10. An apparatus comprising: a capacitive sensing device; a current conveying circuit coupled to the capacitive sensing device; and a charge storage circuit coupled to the current conveying circuit, wherein the charge storage circuit is configured to generate a first output voltage signal and a second output voltage signal while a current is conveyed to the charge storage circuit for a detection of a presence of a conductive object proximate to the capacitive sensing device, based on a difference between the first output voltage signal and the second output voltage signal.
 11. The apparatus of claim 10, wherein the current conveying circuit comprises a low impedance input coupled to an electrode of the capacitive sensing device, the low impedance input configured to hold the electrode at a fixed voltage level.
 12. The apparatus of claim 11, wherein the current conveying circuit comprises: a positive bipolar output coupled to the charge storage circuit, the positive bipolar output configured to mirror a current sensed at the low-impedance input; and a negative bipolar output, the negative bipolar output to invert the current sensed at the low-impedance input.
 13. The apparatus of claim 12, wherein the charge storage circuit comprises an integration capacitor coupled between an output node and a ground node.
 14. The apparatus of claim 13, wherein the charge storage circuit further comprises a second integration capacitor coupled between the output node and the ground node.
 15. The apparatus of claim 12, wherein the charge storage circuit comprises a quasi-differential capacitor circuit, the quasi-differential capacitor circuit comprising a first integration capacitor coupled between a first output node and a ground node and a second integration capacitor coupled between a second output node and the ground node.
 16. The apparatus of claim 15, further comprising a synchronous detect circuit coupled to the charge storage circuit, the synchronous detect circuit configured to charge the first integration capacitor when the current at the bipolar output is positive and to discharge the second integration capacitor when the current is negative.
 17. The apparatus of claim 10, further comprising a processing circuit coupled to the charge storage circuit, the processing circuit configured to detect the presence of the conductive object based on the first output voltage signal and the second output voltage signal.
 18. An apparatus comprising: means for measuring a capacitance of a capacitive sensor device; means for conveying a charge from the capacitance to a charge storage circuit to generate a first output voltage signal and a second output voltage signal; and means for detecting a presence of a conductive object proximate to the capacitive sensor device based on a difference between the first output voltage signal and the second output voltage signal.
 19. The apparatus of claim 18, where the capacitive sensor device comprises a mutual capacitance sensor device.
 20. The apparatus of claim 18, wherein the charge storage circuit comprises a quasi-differential capacitor circuit comprising a first integration capacitor and a second integration capacitor. 